#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
#define N 100


int main()
{
	int arr[N] = { 0 };
	int cnt[N] = { 0 };
	int n = 0;
	scanf("%d", &n);
	for (int i = 0; i < n; i++)
	{
		scanf("%d", &arr[i]);
	}
	for (int i = 0; i < n; i++)
	{
		cnt[arr[i]]++;
	}
	for (int i = 0; i < n; i++)
	{
		if (cnt[arr[i]] == 1)
		{
			printf("%d ", arr[i]);
		}
	}
	return 0;
}
